package com.bjb.vr.operation.controller;

import com.bjb.vr.common.ao.OpenTenantAo;
import com.bjb.vr.common.result.BaseResult;
import com.bjb.vr.common.result.CommonResult;
import com.bjb.vr.operation.openfeign.OpenService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @description:
 * @author: hujingbo
 * @create: 2022-12-09 18:10
 **/
@RestController
@RequestMapping("/api/operation/v1")
public class FeignController {

    @Resource
    private OpenService openService;

    @PostMapping("/feign")
    public Object sendFeign(@RequestHeader(value = "Authorization") String authorization, @RequestBody OpenTenantAo openTenantAo) {
        return openService.queryTenantInfo(authorization, openTenantAo);
    }
}
